]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Fix calendar scroll
authorHollow Man <hollowman@opensuse.org>
Sat, 9 Sep 2023 12:05:27 +0000 (14:05 +0200)
committerHollow Man <hollowman@opensuse.org>
Sat, 9 Sep 2023 12:05:27 +0000 (14:05 +0200)
Update to Clutter.Event getter methods in Clutter.Actor vfuncs
as the old way no longer works

Related to https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2872

Signed-off-by: Hollow Man <hollowman@opensuse.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2946>

js/ui/calendar.js

index 8fe9472c1143aaf38e09e920e3bce108661769d3..1371abf3354cd5a3cace0895b76c562139d7f88a 100644 (file)
@@ -552,8 +552,8 @@ export const Calendar = GObject.registerClass({
         this._firstDayIndex = this.get_n_children();
     }
 
-    vfunc_scroll_event(scrollEvent) {
-        switch (scrollEvent.direction) {
+    vfunc_scroll_event(event) {
+        switch (event.get_scroll_direction()) {
         case Clutter.ScrollDirection.UP:
         case Clutter.ScrollDirection.LEFT:
             this._onPrevMonthButtonClicked();